package day240802;

public class ThreadIntro {
    public static void main(String[] args) {
        System.out.println("1");
        System.out.println("当前线程名称="+Thread.currentThread().getName());
        System.out.println("2");
        Thread.currentThread().setName("newName");
        System.out.println("当前线程名称="+Thread.currentThread().getName());
        System.out.println("3");
        System.out.println("当前线程名称="+Thread.currentThread().getName());
    }
}
